/*    */ package com.yss.sofa.cml;
/*    */ 
/*    */ import com.yss.sofa.cml.color.Color;
/*    */ import com.yss.sofa.cml.type.LineStyleEnum;
/*    */ 
/*    */ public class LinePen
/*    */   implements Pen, CloneableObject<LinePen>
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   protected LineStyleEnum lineStyle;
/*    */   protected Float lineWidth;
/*    */   protected Color lineColor;
/*    */ 
/*    */   public LinePen()
/*    */   {
/*    */   }
/*    */ 
/*    */   public LinePen(Float lineWidth, Color lineColor, LineStyleEnum lineStyle)
/*    */   {
/* 22 */     this.lineWidth = lineWidth;
/* 23 */     this.lineColor = lineColor;
/* 24 */     this.lineStyle = lineStyle;
/*    */   }
/*    */ 
/*    */   public LineStyleEnum getLineStyle() {
/* 28 */     return this.lineStyle;
/*    */   }
/*    */ 
/*    */   public Float getLineWidth() {
/* 32 */     return this.lineWidth;
/*    */   }
/*    */ 
/*    */   public Color getLineColor() {
/* 36 */     return this.lineColor;
/*    */   }
/*    */ 
/*    */   public void setLineStyle(LineStyleEnum lineStyle) {
/* 40 */     this.lineStyle = lineStyle;
/*    */   }
/*    */ 
/*    */   public void setLineWidth(Float lineWidth) {
/* 44 */     this.lineWidth = lineWidth;
/*    */   }
/*    */ 
/*    */   public void setLineColor(Color lineColor) {
/* 48 */     this.lineColor = lineColor;
/*    */   }
/*    */ 
/*    */   public String toString() {
/* 52 */     return this.lineColor.toString() + ", LineWidth[" + this.lineWidth + "], lineStyle[" + this.lineStyle + "]";
/*    */   }
/*    */ 
/*    */   public LinePen clone() {
/* 56 */     LinePen clone = null;
/*    */     try {
/* 58 */       clone = (LinePen)super.clone();
/*    */     } catch (CloneNotSupportedException e) {
/* 60 */       throw new RuntimeException(e);
/*    */     }
/* 62 */     if (this.lineColor != null) {
/* 63 */       clone.lineColor = this.lineColor.clone();
/*    */     }
/* 65 */     return clone;
/*    */   }
/*    */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.LinePen
 * JD-Core Version:    0.6.0
 */